<template>
	<view class="app">
		<view class="">
			<huiyi-mode v-for="(item,index) in huiyiList" :key="index"  @tap='seeHuiyiDec(item)' :item='item'></huiyi-mode>
		</view>
		<view class="">
			<view class="loading-text">{{ loadingText }}</view> 
		</view>
		
	</view>
</template>

<script>
import curretData from './index.js';
import huiyiMode from '../../components/huiyiMode.vue';

export default {
	data() {
		return {
			page: 1,
			pageSize: 10,
			loadingText: '到底了......',
			huiyiList:curretData.huiyiList,
		};
	},
	components:{
		huiyiMode
	},
	onLoad() {
		console.log(curretData)
	},
	onReachBottom: function() {
		this.page++;
		console.log(this.page);
	},
	methods:{
		seeHuiyiDec(data){
			uni.navigateTo({
				url:'../../huiyiLIst/huiyiLIst'
			})
		}
	}
};
</script>

<style lang="scss">
	.app{
		padding: 20upx 30upx;
		>view{
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
		}
	}
</style>
